package jnpf.common.enums.dify;

/**
 * Dify返回内容的类型
 */
public enum DifyRespEnum {
    ONLY_ME("agent_thought", "开始和倒数第二的内容总结"),
    ALL_TEAM_MEMBERS("agent_thought", "常规文本"),
    PARTIAL_MEMBERS("message_end", "文本结束");
    private final String permission;
    private final String des;

    DifyRespEnum(String permission, String des) {
        this.permission = permission;
        this.des = des;
    }

    public String getPermission() {
        return permission;
    }

    public String getDes() {
        return des;
    }


    /**
     * //流开始
     * {"event": "agent_thought", "conversation_id": "6ec432f5-f48f-4290-93f6-9b0aad7ab6ea", "message_id": "87c414b5-787f-4f6c-88f9-bcd44d2379ae", "created_at": 1742866120, "task_id": "189ca3fd-cb37-41f8-b871-403d5ae7f705", "id": "1279c5eb-ca93-4622-a182-2dfc5a3aca5e", "position": 1, "thought": "", "observation": "", "tool": "", "tool_labels": {}, "tool_input": "", "message_files": []}
     *
     * 中间流内容，通过answer获取内容
     * {"event": "agent_message", "conversation_id": "6ec432f5-f48f-4290-93f6-9b0aad7ab6ea", "message_id": "87c414b5-787f-4f6c-88f9-bcd44d2379ae", "created_at": 1742866120, "task_id": "189ca3fd-cb37-41f8-b871-403d5ae7f705", "id": "87c414b5-787f-4f6c-88f9-bcd44d2379ae", "answer": "\u5de5\u7a0b"}
     *
     * 倒数第二的内容总结
     * {"event": "agent_thought", "conversation_id": "6ec432f5-f48f-4290-93f6-9b0aad7ab6ea", "message_id": "87c414b5-787f-4f6c-88f9-bcd44d2379ae", "created_at": 1742866120, "task_id": "189ca3fd-cb37-41f8-b871-403d5ae7f705", "id": "1279c5eb-ca93-4622-a182-2dfc5a3aca5e", "position": 1, "thought": "\u6839\u636e\u60a8\u63d0\u4f9b\u7684\u884c\u4e1a\u80cc\u666f\uff08\u6c7d\u8f66\u5236\u9020\u884c\u4e1a\uff09\u3001\u4ea7\u54c1\u7c7b\u578b\uff08\u6c7d\u8f66\uff09\u4ee5\u53ca\u4f01\u4e1a\u89c4\u6a21\uff08\u5c0f\u578b\u4f01\u4e1a\uff09\uff0c\u4ee5\u4e0b\u662f\u8c03\u6574\u540e\u7684\u4e94\u529b\u6a21\u578b\u7ba1\u7406\u5de5\u7a0b\u7ed3\u6784\uff0c\u7279\u522b\u9488\u5bf9\u5c0f\u578b\u6c7d\u8f66\u5236\u9020\u4f01\u4e1a\uff1a\n\n# \u7ba1\u7406\u5de5\u7a0b\u6a21\u578b\n## 1 \u613f\u666f\u6a21\u578b\n### 1.1 \u4ef7\u503c\u89c2\n#### 1.1.1 \u521b\u65b0\n#### 1.1.2 \u8d28\u91cf\n#### 1.1.3 \u53ef\u6301\u7eed\u6027\n### 1.2 \u76ee\u6807\u6a21\u578b\n#### 1.2.1 \u4ea7\u54c1\u8fb9\u754c\n##### 1.2.1.1 \u4e3b\u4ea7\u54c1\u7c7b\u522b\uff08\u6c7d\u8f66\uff09\n###### 1.2.1.1.1 \u4e58\u7528\u8f66\n###### 1.2.1.1.2 \u5546\u7528\u8f66\n##### 1.2.1.2 \u884d\u751f\u4ea7\u54c1\u7c7b\u522b\uff08\u6c7d\u8f66\u914d\u4ef6\u4e0e\u670d\u52a1\uff09\n###### 1.2.1.2.1 \u6c7d\u8f66\u96f6\u90e8\u4ef6\n###### 1.2.1.2.2 \u552e\u540e\u670d\u52a1\n### 1.3 \u89c4\u5212\u6a21\u578b\n#### 1.3.1 \u957f\u671f\u89c4\u5212\n##### 1.3.1.1 \u5e02\u573a\u6269\u5f20\n##### 1.3.1.2 \u6280\u672f\u5347\u7ea7\n#### 1.3.2 \u77ed\u671f\u89c4\u5212\n##### 1.3.2.1 \u73b0\u91d1\u6d41\u7ba1\u7406\n##### 1.3.2.2 \u4ea7\u54c1\u7ebf\u4f18\u5316\n## 2 \u4e1a\u52a1\u6a21\u578b\n### 2.1 \u57fa\u672c\u4e1a\u52a1\u6a21\u578b\n#### 2.1.1 \u7814\u53d1\n##### 2.1.1.1 \u65b0\u8f66\u578b\u5f00\u53d1\n##### 2.1.1.2 \u6280\u672f\u6539\u8fdb\n#### 2.1.2 \u751f\u4ea7\n##### 2.1.2.1 \u7cbe\u76ca\u751f\u4ea7\n##### 2.1.2.2 \u8d28\u91cf\u63a7\u5236\n#### 2.1.3 \u9500\u552e\n##### 2.1.3.1 \u76f4\u9500\n##### 2.1.3.2 \u7ecf\u9500\u5546\u7f51\u7edc\n#### 2.1.4 \u670d\u52a1\n##### 2.1.4.1 \u5ba2\u6237\u652f\u6301\n##### 2.1.4.2 \u7ef4\u4fee\u4e0e\u4fdd\u517b\n### 2.2 \u652f\u6301\u4e1a\u52a1\u6a21\u578b\n#### 2.2.1 \u4eba\u529b\u8d44\u6e90\n##### 2.2.1.1 \u5458\u5de5\u57f9\u8bad\n##### 2.2.1.2 \u7ee9\u6548\u7ba1\u7406\n#### 2.2.2 \u8d22\u52a1\n##### 2.2.2.1 \u6210\u672c\u63a7\u5236\n##### 2.2.2.2 \u8d44\u91d1\u7b79\u96c6\n#### 2.2.3 \u6cd5\u52a1\n##### 2.2.3.1 \u5408\u540c\u7ba1\u7406\n##### 2.2.3.2 \u77e5\u8bc6\u4ea7\u6743\u4fdd\u62a4\n## 3 \u7ec4\u7ec7\u6a21\u578b\n### 3.1 \u7ec4\u7ec7\u67b6\u6784\n#### 3.1.1 \u9ad8\u5c42\u7ba1\u7406\n##### 3.1.1.1 \u51b3\u7b56\u5236\u5b9a\n##### 3.1.1.2 \u6218\u7565\u89c4\u5212\n#### 3.1.2 \u4e2d\u5c42\u7ba1\u7406\n##### 3.1.2.1 \u9879\u76ee\u7ba1\u7406\n##### 3.1.2.2 \u56e2\u961f\u9886\u5bfc\n#### 3.1.3 \u57fa\u5c42\u5458\u5de5\n##### 3.1.3.1 \u64cd\u4f5c\u6267\u884c\n##### 3.1.3.2 \u73b0\u573a\u95ee\u9898\u89e3\u51b3\n### 3.2 \u804c\u80fd\u5206\u5de5\n#### 3.2.1 \u7814\u53d1\u90e8\u95e8\n##### 3.2.1.1 \u4ea7\u54c1\u8bbe\u8ba1\n##### 3.2.1.2 \u6280\u672f\u7814\u53d1\n#### 3.2.2 \u751f\u4ea7\u90e8\u95e8\n##### 3.2.2.1 \u751f\u4ea7\u8ba1\u5212\n##### 3.2.2.2 \u7269\u6599\u7ba1\u7406\n#### 3.2.3 \u9500\u552e\u90e8\u95e8\n##### 3.2.3.1 \u5e02\u573a\u5206\u6790\n##### 3.2.3.2 \u9500\u552e\u7b56\u7565\n#### 3.2.4 \u670d\u52a1\u90e8\u95e8\n##### 3.2.4.1 \u5ba2\u6237\u5173\u7cfb\u7ba1\u7406\n##### 3.2.4.2 \u670d\u52a1\u6d41\u7a0b\u4f18\u5316\n## 4 \u5236\u5ea6\u6a21\u578b\n### 4.1 \u7ba1\u7406\u89c4\u7ae0\n#### 4.1.1 \u4eba\u529b\u8d44\u6e90\u653f\u7b56\n##### 4.1.1.1 \u62db\u8058\u4e0e\u9009\u62d4\n##### 4.1.1.2 \u5458\u5de5\u53d1\u5c55\n#### 4.1.2 \u8d22\u52a1\u7ba1\u7406\u5236\u5ea6\n##### 4.1.2.1 \u9884\u7b97\u7ba1\u7406\n##### 4.1.2.2 \u8d22\u52a1\u62a5\u544a\n#### 4.1.3 \u6cd5\u52a1\u5408\u89c4\u5236\u5ea6\n##### 4.1.3.1 ", "observation": "", "tool": "", "tool_labels": {}, "tool_input": "", "message_files": []}
     *
     * 流结束
     * {"event": "message_end", "conversation_id": "6ec432f5-f48f-4290-93f6-9b0aad7ab6ea", "message_id": "87c414b5-787f-4f6c-88f9-bcd44d2379ae", "created_at": 1742866120, "task_id": "189ca3fd-cb37-41f8-b871-403d5ae7f705", "id": "87c414b5-787f-4f6c-88f9-bcd44d2379ae", "metadata": {"usage": {"prompt_tokens": 2170, "prompt_unit_price": "0.0", "prompt_price_unit": "0.0", "prompt_price": "0.0260400", "completion_tokens": 3344, "completion_unit_price": "0.0", "completion_price_unit": "0.0", "completion_price": "0.0401280", "total_tokens": 0, "total_price": "0.0661680", "currency": "USD", "latency": 0.0}}, "files": null}
     */
}

